<template>
  <view class="setList navTop">
    <van-nav-bar title="设置" left-arrow fixed class="loginNav" @click-left="onClickLeft"/>
    <div class="line"></div>
    <van-cell-group :border="false">
      <van-cell title="登录密码" url="/pages/password/login" link-type="navigateTo" is-link />
      <van-cell title="支付密码" url="/pages/password/pay" link-type="navigateTo" is-link />
      <van-cell title="退出登录" @tap="logout"  :border="false" is-link />
    </van-cell-group>
    <van-dialog id="van-dialog" />
  </view>
</template>

<script>
import Dialog from '@/wxcomponents/vant/dist/dialog/dialog';
export default {
  data() {
    return {};
  },
  methods: {
    onClickLeft() {
      uni.navigateBack();
    },
    logout(){
      Dialog.confirm({
        title: '标题',
        message: '弹窗内容'
      }).then(() => {
        // on confirm
      }).catch(() => {
        // on cancel
      });
    }
  }
};
</script>

<style lang="less">
.setList{
  background: #f5f5f5;
  min-height: 100vh;
}
</style>
